import Vue from 'vue'
import App from './App'
import router from '@/common/router'
import store from '@/common/store'
import tools from '@/common/utils/tools'
import api from '@/common/request/index'
import home from './pages/home/home.vue'
import mine from './pages/mine/mine.vue'
import mall from './pages/qkmall/mallhome.vue'
import qkCustom from './components/qkCustom/qk-custom.vue'
import uView from "uview-ui";
import { RouterMount } from 'uni-simple-router'
import './uni.promisify.adaptor'
Vue.config.productionTip = false
Vue.use(uView);
App.mpType = 'app'
Vue.prototype.$api = api;
Vue.prototype.$tools = tools;
const app = new Vue({
  router,
  ...App,
  store
})
Vue.component('home',home)

Vue.component('mine',mine)

Vue.component('mall',mall)

Vue.component('qk-custom',qkCustom)
//v1.3.5起 H5端 你应该去除原有的app.$mount();使用路由自带的渲染方式
// #ifdef H5
	RouterMount(app,'#app');
// #endif

// #ifndef H5
	app.$mount(); //为了兼容小程序及app端必须这样写才有效果
// #endif